import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/inventory_entity.dart';

InventoryEntity $InventoryEntityFromJson(Map<String, dynamic> json) {
	final InventoryEntity inventoryEntity = InventoryEntity();
	final String? uid = jsonConvert.convert<String>(json['uid']);
	if (uid != null) {
		inventoryEntity.uid = uid;
	}
	final String? ant = jsonConvert.convert<String>(json['ant']);
	if (ant != null) {
		inventoryEntity.ant = ant;
	}
	final int? station = jsonConvert.convert<int>(json['station']);
	if (station != null) {
		inventoryEntity.station = station;
	}
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		inventoryEntity.no = no;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		inventoryEntity.name = name;
	}
	final String? currentPlace = jsonConvert.convert<String>(json['currentPlace']);
	if (currentPlace != null) {
		inventoryEntity.currentPlace = currentPlace;
	}
	final String? currentPlaceName = jsonConvert.convert<String>(json['currentPlaceName']);
	if (currentPlaceName != null) {
		inventoryEntity.currentPlaceName = currentPlaceName;
	}
	final String? initPlace = jsonConvert.convert<String>(json['initPlace']);
	if (initPlace != null) {
		inventoryEntity.initPlace = initPlace;
	}
	final String? initPlaceName = jsonConvert.convert<String>(json['initPlaceName']);
	if (initPlaceName != null) {
		inventoryEntity.initPlaceName = initPlaceName;
	}
	final String? state = jsonConvert.convert<String>(json['state']);
	if (state != null) {
		inventoryEntity.state = state;
	}
	return inventoryEntity;
}

Map<String, dynamic> $InventoryEntityToJson(InventoryEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['uid'] = entity.uid;
	data['ant'] = entity.ant;
	data['station'] = entity.station;
	data['no'] = entity.no;
	data['name'] = entity.name;
	data['currentPlace'] = entity.currentPlace;
	data['currentPlaceName'] = entity.currentPlaceName;
	data['initPlace'] = entity.initPlace;
	data['initPlaceName'] = entity.initPlaceName;
	data['state'] = entity.state;
	return data;
}